﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NAnt.SVN.Tasks
{
    /// <summary>
    /// Glue code between the Nant logging infrastructure and
    /// this task set.
    /// $Id$
    /// </summary>
    class NantSVNTaskLogger : ISVNTaskLogger
    {
        #region Private Fields

        BaseExtensionTask task;

        #endregion

        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="task"></param>
        public NantSVNTaskLogger(BaseExtensionTask task)
        {
            this.task = task;
        }

        /// <summary>
        /// Log a message
        /// </summary>
        /// <param name="messageLevel"></param>
        /// <param name="message"></param>
        public void LogMessage(Core.Level messageLevel, string message)
        {
            task.LogToProject(messageLevel, message);
        }
    }
}
